package flexserverlib.messaging
{
	import flash.events.EventDispatcher;
	
	import flexserverlib.messaging.support.MailMessage;
	
	import mx.core.IMXMLObject;
	import mx.events.PropertyChangeEvent;
	import mx.messaging.Producer;
	import mx.messaging.messages.AsyncMessage;
	import mx.utils.UIDUtil;

	public class MailSender extends Producer
	{

		public function MailSender()
		{	
			super();
			super.connect();
		}
		
		public function sendMail(msg:MailMessage):void{
			var aMsg:AsyncMessage = new AsyncMessage(msg);
			super.send(aMsg); 
		}
		

		
	}
}